import request from "@/router/axios";

//专家分类列表
export const getCategoryList = (current, size, params) => {
  return request({
    url: "/api/blade-expert/eCategory/list",
    method: "get",
    params: {
      ...params,
      current, 
      size
    },
  });
};

//新增分类模块
export const addCategoryItem = (row) => {
  return request({
    url: "/api/blade-expert/eCategory/submit",
    method: "post",
    data: row,
  });
};

//新增分类模块
export const updateCategoryItem = (row) => {
  return request({
    url: "/api/blade-expert/eCategory/submit",
    method: "post",
    data: row,
  });
};

//删除分类模块
export const deleteCategoryItem = (ids) => {
  return request({
    url: "/api/blade-expert/eCategory/remove",
    method: "post",
    params: {
      ids,
    },
  });
};
